using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
using UnityEngine;
using UnityEngine.UI;

public class DOTweenImageFillAmount : MonoBehaviour
{
    public Image mImgFA;
    private float _newValue = 0;
    private float _oldValue = 1;
    
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.A))
        {
            DOTween.To(delegate(float value)
            {
                mImgFA.fillAmount = value;
            }, _newValue, _oldValue, 1);
        }
    }
}
